package org.dromara.legal.domain.vo;

import org.dromara.common.core.xss.Xss;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.legal.domain.Consult;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;


/**
 * 咨询视图对象 le_consult
 *
 * @author zhuqingrun
 * @date 2024-10-15
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Consult.class)
public class ConsultVo extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 咨询id
     */
    @ExcelProperty(value = "咨询id")
    private Long id;

    /**
     * 咨询律师id
     */
    @ExcelProperty(value = "咨询律师id")
    private Long lawyerId;

    /**
     * 咨询律师姓名
     */
    @Translation(type = TransConstant.USER_ID_TO_NAME)
    private String lawyerName;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 电话
     */
    @ExcelProperty(value = "电话")
    private String phone;

    /**
     * 咨询内容
     */
    @ExcelProperty(value = "咨询内容")
    private String content;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private String img;

    /**
     * 状态（0未回复，1已回复）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=未回复，1已回复")
    private String status;

    private List<RevertVo> revertVoList;

}
